#include <iostream>
#include <vector>

using namespace std;

int main()
{
	vector<int> dynArray(3); // 注意尖括号(size)

	dynArray[0] = 11;
	dynArray[1] = -22;
	dynArray[2] = 33;

	cout << "大小" << dynArray.size() << endl;

	cout << "Enter another element to insert" << endl;
	dynArray.push_back(44);

	cout << dynArray.size() << endl;
	cout << "最后一个元素" << dynArray[dynArray.size() - 1] << endl;//44

	return 0;
}